# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

certificates = ["安全资质(指挥)证","安全资格证","安全文化证","井控技术提升证","井控证",
                "硫化氢证","起重指挥证","司钻操作证","安全资质（操作）证","气瓶充装证",
                "压力容器证", "电工证","高处作业证", "司钻操作证","井控装备强化证"]

certificates.map { |e|
  certificate = AddCertificate.run(name: e, available_months: 2)
}